#include <bits/stdc++.h>
using namespace std;
int h;

int main() {
    cin >> h;
    double h1 = h;
    double sh = 0;
    for (int i = 1; i <= 10; i++) {
        sh += 2 * h1;
        h1 /= 2;
    }
    sh -= h;
    cout << sh << endl << h1;
    return 0;
}